<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html class="no-js" lang="zxx">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Shop | eCommers</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" type="image/x-icon"
          href="${pageContext.request.contextPath}/shop/assets/img/icon/favicon.png">
    <jsp:include page="${pageContext.request.contextPath}/common/css.jsp"></jsp:include>
</head>
<body>
<div id="preloader-active">
    <div class="preloader d-flex align-items-center justify-content-center">
        <div class="preloader-inner position-relative">
            <div class="preloader-circle"></div>
            <div class="preloader-img pere-text">
                <img src="${pageContext.request.contextPath}/shop/assets/img/icon/loder.png" alt="loder">
            </div>
        </div>
    </div>
</div>
<!-- Preloader Start -->
<jsp:include page="${pageContext.request.contextPath}/common/header2.jsp"></jsp:include>

<main>
    <!--  Hero area End -->
    <!--================Cart Area =================-->
    <section class="cart_area">
        <div class="container">
            <div class="cart_inner">
                <div class="table-responsive">
                    <table class="table">

                        <tr>
                            <th scope="col">ID</th>
                            <th scope="col">User</th>
                            <th scope="col">Cost</th>
                            <th scope="col">PayWay</th>
                            <th scope="col">OrderStatus</th>
                            <th scope="col">operation</th>

                        </tr>
                        <tbody>

                        <c:forEach items="${myOrderList}" var="myOrder">
                            <tr>
                                <td>
                                    <a href="">
                                        <p>${myOrder.id}</p>
                                    </a>
                                </td>
                                <td>
                                    <h5>${myOrder.name}</h5>
                                </td>
                                <td>
                                    <h5>${myOrder.cost}</h5>
                                </td>
                                <td>
                                    <h5>${myOrder.payWay.payStyle}</h5>
                                </td>
                                <td>
                                    <h5>${myOrder.status.name}</h5>
                                </td>
                                <td>

                                    <a href="${pageContext.request.contextPath}/Order/showItems.action?orderid=${myOrder.id}" class="btn">show</a>
                                    <a href="${pageContext.request.contextPath}/Order/updateStatus.action?orderid=${myOrder.id}" class="btn">update</a>
                                </td>
                            </tr>

                        </c:forEach>


                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </section>
    <!--================End Cart Area =================-->
</main>
<jsp:include page="${pageContext.request.contextPath}/common/Foot.jsp"></jsp:include>
<jsp:include page="${pageContext.request.contextPath}/common/js.jsp"></jsp:include>
</body>
</html>